package com.interview.javabasic.jvm;

import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;

public class NormalObjectWeakReference extends WeakReference<NormalObject> {
    public String name;
    public NormalObjectWeakReference(NormalObject normalObject, ReferenceQueue<NormalObject> rq){
        super(normalObject,rq);
        this.name = name;
    }
    @Override
    protected void finalize(){
        System.out.println("Finalizing NormalObjectWeakReference " + name);
    }
}
